//
//  FullContentViewController.swift
//  CMDB
//
//  Created by 曹桂祥 on 17/5/3.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

class FullContentViewController: CMDBBaseViewController {

    var windowView     : UIView?
    
    var loadingView    : UIView?
    
    var titleView      : UIView?
    
    var contentView    : UIView?
    
    var backgroundView : UIView?
    
    override func setup() {
        super.setup()
        
        buildBackgroundView()
        buildContentView()
        buildTitleView()
        
        loadingView?.userInteractionEnabled = false
        windowView?.userInteractionEnabled  = false
        
    }
    
}


extension FullContentViewController{
    
    func buildBackgroundView(){
    
        backgroundView = UIView(frame: CGRect(x: 0, y: 0, width: CMDB_Screen_Width, height: CMDB_Screen_Height))
        
        view.addSubview(backgroundView!)
        
    }
    
    func buildTitleView(){
        
        titleView    = UIView(frame: CGRect(x: 0, y: 0, width: CMDB_Screen_Width, height: KNavBarHeight + KStatusBarHeight))
        
        view.addSubview(titleView!)
    }
    
    func buildContentView(){
        
        contentView  = UIView(frame: CGRect(x: 0, y: 0, width: CMDB_Screen_Width, height: CMDB_Screen_Height))
        
        view.addSubview(contentView!)
    }
    
    func buildLoadingView() {
        
        loadingView    = UIView(frame : CGRect(x: 0, y: 0, width: width, height: height))
        
        view.addSubview(loadingView!)
    }
    
    func buildWindowView(){
        
        windowView = UIView(frame : CGRect(x: 0, y: 0, width: width, height: height))
        
        view.addSubview(windowView!)
        
    }
}
